<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title></title>
<link rel="stylesheet" href="${staticServer}/inc/style/main.css" />
<link rel="stylesheet" href="${staticServer}/inc/style/page.css" />
<link rel="stylesheet" href="${staticServer}/css/struct_department.css?1.2" />
<script src="${staticServer}/inc/js/jquery.js"></script>
<script src="${staticServer}/inc/js/pageset.js"></script>
<script src="${staticServer}/inc/js/submitter.js"></script>
<script src="${staticServer}/js/web/struct_department.js?1.5"></script>

<script>
var contextPath='${contextPath}';

$(function(){
	updateInfo();
});

var updateInfo = function(){
	var nickname = $("#nickname").val();
		
	$.post("${contextPath}/index/updateInfo.json", {
		"nickname" : nickname
	}, function(ms) {
			
	});
}
</script>
</head>

<body>
	<div id="home_link">
		<ul>
			<li></li>
			<li>&gt;</li>
			<li>组织架构</li>
			<li>&gt;</li>
			<li class="current"></li>
		</ul>
	</div>
	<div id="caption">
		<ul>
			<li><span class="title">操作提示：</span></li>
			<li><img src="${staticServer}/img/ok.png" />确定提交</li>
			<li><img src="${staticServer}/img/cancel.png" />删除当前部门或职位</li>
			<li>当光标在输入框中时，按“回车”可直接提交</li>
		</ul>
	</div>
	<div id="container">
		<div id="title"></div>
		<table id="department">
			<tr class="fields">
				<th>竞思教育科技</th>
			</tr>
			<tr>
				<td id="lst_root">
				<#if depList??>
					<#list depList as list>
						<a id="${list.keyname}" title="点击修改">${list.name}</a>
					</#list>
				</#if>
					<a class="add" title="添加新部门">+</a>
				</td>
			</tr>
			
			<#if depList??>
				<#list depList as list>
					<tr class="fields">
						<th id="${list.keyname}">${list.name}</th>
					</tr>
					<tr>
						<td id="lst_${list.keyname}">
							<#list list.list as list2>
								<a id="${list2.keyname}" title="点击修改">${list2.name}</a>
							</#list>
							<a class="add" title="添加新职位">+</a>
						</td>
					</tr>
					
				</#list>
				
			</#if>
			
			
			
		</table>
	</div>
</body>
</html>